/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const spiderRouter =
{
  redirect: '/spider/tieba/form',
  path: '/spider',
  component: Layout,
  name: '查看',
  meta: {
    title: '查看监控',
    icon: 'el-icon-s-help'
  },
  children: [{
    path: 'tieba',
    component: () => import('@/views/spider/tieba/index'),
    name: 'tieba',
    meta: { title: '实时监控', icon: 'documentation' },
    children: [
      {
        path: 'form',
        component: () => import('@/views/spider/tieba/form/index'),
        name: '目标检测',
        meta: { title: '目标检测', icon: 'documentation' }
      },
      // {
      //   path: 'list',
      //   component: () => import('@/views/spider/tieba/list/index'),
      //   name: '人脸识别',
      //   meta: { title: '人脸识别', icon: 'documentation' }
      // },
      {
        path: 'detail',
        hidden: true,
        component: () => import('@/views/spider/tieba/detail/index'),
        name: '任务详情页',
        meta: { title: '任务详情页', icon: 'documentation' }
      }
    ]
  }]
}

export default spiderRouter
